﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CarPark.MainModel
{
    public class MidLogin
    {
        public bool LoginCheck(int parkid, string admin, string adminpwd)
        {
            string sql = "select count(F_ID) from TPark where F_ID = '"
                            +parkid.ToString()+"'and F_Admin = '"
                            +admin.Trim()+"' and F_AdminPass = '"
                            +adminpwd.Trim()+"'";
            if (Helper.SQLHelper.GetDataTable(sql, null, null).Rows.Count > 0)
                return true;
            return false;
        }
    }
}